package com.dmall.client.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

@Getter
@Setter
@ToString
public class User {
    private Integer id;
    private String loginName;
    private String password;
    private String realName;
    private String phone;
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birth;
    private Integer gender;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updated;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date created;
}
